package com.origin.uilibrary.xrecycleview;

import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.RecyclerView;

import com.origin.uilibrary.xrecycleview.adapter.BaseRecycleAdapter;

public class BindingXRecycleViewAdapter {
    @BindingAdapter(value = {"baseRecycleAdapter"}, requireAll = false)
    public static <T> void setAdapter(RecyclerView recyclerView, BaseRecycleAdapter<T> baseRecycleAdapter) {
        recyclerView.setAdapter(baseRecycleAdapter);
    }
}
